package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author linKe
 * @since 2021-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("rbac_perm")
@ApiModel(value="RbacPerm对象", description="权限表")
public class RbacPerm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "权限名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "权限代码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "访问路径")
    @TableField("link")
    private String link;

    @ApiModelProperty(value = "父类ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "权限类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "权限状态")
    @TableField("status")
    private String status;

}
